package net.ashrentum;

import java.io.Serializable;

public class Pattern implements Serializable {

	String regex;
	
	private static final long serialVersionUID = 4081003033001984909L;

	Pattern(String regex) {
		this.regex = regex;
	}
	
	static Pattern compile(String regex) {
		return new Pattern(regex);
	}
	
	Matcher matcher(CharSequence input) {
		return new Matcher(this, input);
	}
}
